package com.igeekhome.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class MonReceivingMonitoringExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MonReceivingMonitoringExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andArrivalTimeIsNull() {
            addCriterion("arrival_time is null");
            return (Criteria) this;
        }

        public Criteria andArrivalTimeIsNotNull() {
            addCriterion("arrival_time is not null");
            return (Criteria) this;
        }

        public Criteria andArrivalTimeEqualTo(Date value) {
            addCriterion("arrival_time =", value, "arrivalTime");
            return (Criteria) this;
        }

        public Criteria andArrivalTimeNotEqualTo(Date value) {
            addCriterion("arrival_time <>", value, "arrivalTime");
            return (Criteria) this;
        }

        public Criteria andArrivalTimeGreaterThan(Date value) {
            addCriterion("arrival_time >", value, "arrivalTime");
            return (Criteria) this;
        }

        public Criteria andArrivalTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("arrival_time >=", value, "arrivalTime");
            return (Criteria) this;
        }

        public Criteria andArrivalTimeLessThan(Date value) {
            addCriterion("arrival_time <", value, "arrivalTime");
            return (Criteria) this;
        }

        public Criteria andArrivalTimeLessThanOrEqualTo(Date value) {
            addCriterion("arrival_time <=", value, "arrivalTime");
            return (Criteria) this;
        }

        public Criteria andArrivalTimeIn(List<Date> values) {
            addCriterion("arrival_time in", values, "arrivalTime");
            return (Criteria) this;
        }

        public Criteria andArrivalTimeNotIn(List<Date> values) {
            addCriterion("arrival_time not in", values, "arrivalTime");
            return (Criteria) this;
        }

        public Criteria andArrivalTimeBetween(Date value1, Date value2) {
            addCriterion("arrival_time between", value1, value2, "arrivalTime");
            return (Criteria) this;
        }

        public Criteria andArrivalTimeNotBetween(Date value1, Date value2) {
            addCriterion("arrival_time not between", value1, value2, "arrivalTime");
            return (Criteria) this;
        }

        public Criteria andArrivalNetworkIsNull() {
            addCriterion("arrival_network is null");
            return (Criteria) this;
        }

        public Criteria andArrivalNetworkIsNotNull() {
            addCriterion("arrival_network is not null");
            return (Criteria) this;
        }

        public Criteria andArrivalNetworkEqualTo(Integer value) {
            addCriterion("arrival_network =", value, "arrivalNetwork");
            return (Criteria) this;
        }

        public Criteria andArrivalNetworkNotEqualTo(Integer value) {
            addCriterion("arrival_network <>", value, "arrivalNetwork");
            return (Criteria) this;
        }

        public Criteria andArrivalNetworkGreaterThan(Integer value) {
            addCriterion("arrival_network >", value, "arrivalNetwork");
            return (Criteria) this;
        }

        public Criteria andArrivalNetworkGreaterThanOrEqualTo(Integer value) {
            addCriterion("arrival_network >=", value, "arrivalNetwork");
            return (Criteria) this;
        }

        public Criteria andArrivalNetworkLessThan(Integer value) {
            addCriterion("arrival_network <", value, "arrivalNetwork");
            return (Criteria) this;
        }

        public Criteria andArrivalNetworkLessThanOrEqualTo(Integer value) {
            addCriterion("arrival_network <=", value, "arrivalNetwork");
            return (Criteria) this;
        }

        public Criteria andArrivalNetworkIn(List<Integer> values) {
            addCriterion("arrival_network in", values, "arrivalNetwork");
            return (Criteria) this;
        }

        public Criteria andArrivalNetworkNotIn(List<Integer> values) {
            addCriterion("arrival_network not in", values, "arrivalNetwork");
            return (Criteria) this;
        }

        public Criteria andArrivalNetworkBetween(Integer value1, Integer value2) {
            addCriterion("arrival_network between", value1, value2, "arrivalNetwork");
            return (Criteria) this;
        }

        public Criteria andArrivalNetworkNotBetween(Integer value1, Integer value2) {
            addCriterion("arrival_network not between", value1, value2, "arrivalNetwork");
            return (Criteria) this;
        }

        public Criteria andVotesDueIsNull() {
            addCriterion("votes_due is null");
            return (Criteria) this;
        }

        public Criteria andVotesDueIsNotNull() {
            addCriterion("votes_due is not null");
            return (Criteria) this;
        }

        public Criteria andVotesDueEqualTo(Integer value) {
            addCriterion("votes_due =", value, "votesDue");
            return (Criteria) this;
        }

        public Criteria andVotesDueNotEqualTo(Integer value) {
            addCriterion("votes_due <>", value, "votesDue");
            return (Criteria) this;
        }

        public Criteria andVotesDueGreaterThan(Integer value) {
            addCriterion("votes_due >", value, "votesDue");
            return (Criteria) this;
        }

        public Criteria andVotesDueGreaterThanOrEqualTo(Integer value) {
            addCriterion("votes_due >=", value, "votesDue");
            return (Criteria) this;
        }

        public Criteria andVotesDueLessThan(Integer value) {
            addCriterion("votes_due <", value, "votesDue");
            return (Criteria) this;
        }

        public Criteria andVotesDueLessThanOrEqualTo(Integer value) {
            addCriterion("votes_due <=", value, "votesDue");
            return (Criteria) this;
        }

        public Criteria andVotesDueIn(List<Integer> values) {
            addCriterion("votes_due in", values, "votesDue");
            return (Criteria) this;
        }

        public Criteria andVotesDueNotIn(List<Integer> values) {
            addCriterion("votes_due not in", values, "votesDue");
            return (Criteria) this;
        }

        public Criteria andVotesDueBetween(Integer value1, Integer value2) {
            addCriterion("votes_due between", value1, value2, "votesDue");
            return (Criteria) this;
        }

        public Criteria andVotesDueNotBetween(Integer value1, Integer value2) {
            addCriterion("votes_due not between", value1, value2, "votesDue");
            return (Criteria) this;
        }

        public Criteria andNoShipmentArrivedIsNull() {
            addCriterion("no_shipment_arrived is null");
            return (Criteria) this;
        }

        public Criteria andNoShipmentArrivedIsNotNull() {
            addCriterion("no_shipment_arrived is not null");
            return (Criteria) this;
        }

        public Criteria andNoShipmentArrivedEqualTo(String value) {
            addCriterion("no_shipment_arrived =", value, "noShipmentArrived");
            return (Criteria) this;
        }

        public Criteria andNoShipmentArrivedNotEqualTo(String value) {
            addCriterion("no_shipment_arrived <>", value, "noShipmentArrived");
            return (Criteria) this;
        }

        public Criteria andNoShipmentArrivedGreaterThan(String value) {
            addCriterion("no_shipment_arrived >", value, "noShipmentArrived");
            return (Criteria) this;
        }

        public Criteria andNoShipmentArrivedGreaterThanOrEqualTo(String value) {
            addCriterion("no_shipment_arrived >=", value, "noShipmentArrived");
            return (Criteria) this;
        }

        public Criteria andNoShipmentArrivedLessThan(String value) {
            addCriterion("no_shipment_arrived <", value, "noShipmentArrived");
            return (Criteria) this;
        }

        public Criteria andNoShipmentArrivedLessThanOrEqualTo(String value) {
            addCriterion("no_shipment_arrived <=", value, "noShipmentArrived");
            return (Criteria) this;
        }

        public Criteria andNoShipmentArrivedLike(String value) {
            addCriterion("no_shipment_arrived like", value, "noShipmentArrived");
            return (Criteria) this;
        }

        public Criteria andNoShipmentArrivedNotLike(String value) {
            addCriterion("no_shipment_arrived not like", value, "noShipmentArrived");
            return (Criteria) this;
        }

        public Criteria andNoShipmentArrivedIn(List<String> values) {
            addCriterion("no_shipment_arrived in", values, "noShipmentArrived");
            return (Criteria) this;
        }

        public Criteria andNoShipmentArrivedNotIn(List<String> values) {
            addCriterion("no_shipment_arrived not in", values, "noShipmentArrived");
            return (Criteria) this;
        }

        public Criteria andNoShipmentArrivedBetween(String value1, String value2) {
            addCriterion("no_shipment_arrived between", value1, value2, "noShipmentArrived");
            return (Criteria) this;
        }

        public Criteria andNoShipmentArrivedNotBetween(String value1, String value2) {
            addCriterion("no_shipment_arrived not between", value1, value2, "noShipmentArrived");
            return (Criteria) this;
        }

        public Criteria andNoDeliveryArrivedIsNull() {
            addCriterion("no_delivery_arrived is null");
            return (Criteria) this;
        }

        public Criteria andNoDeliveryArrivedIsNotNull() {
            addCriterion("no_delivery_arrived is not null");
            return (Criteria) this;
        }

        public Criteria andNoDeliveryArrivedEqualTo(String value) {
            addCriterion("no_delivery_arrived =", value, "noDeliveryArrived");
            return (Criteria) this;
        }

        public Criteria andNoDeliveryArrivedNotEqualTo(String value) {
            addCriterion("no_delivery_arrived <>", value, "noDeliveryArrived");
            return (Criteria) this;
        }

        public Criteria andNoDeliveryArrivedGreaterThan(String value) {
            addCriterion("no_delivery_arrived >", value, "noDeliveryArrived");
            return (Criteria) this;
        }

        public Criteria andNoDeliveryArrivedGreaterThanOrEqualTo(String value) {
            addCriterion("no_delivery_arrived >=", value, "noDeliveryArrived");
            return (Criteria) this;
        }

        public Criteria andNoDeliveryArrivedLessThan(String value) {
            addCriterion("no_delivery_arrived <", value, "noDeliveryArrived");
            return (Criteria) this;
        }

        public Criteria andNoDeliveryArrivedLessThanOrEqualTo(String value) {
            addCriterion("no_delivery_arrived <=", value, "noDeliveryArrived");
            return (Criteria) this;
        }

        public Criteria andNoDeliveryArrivedLike(String value) {
            addCriterion("no_delivery_arrived like", value, "noDeliveryArrived");
            return (Criteria) this;
        }

        public Criteria andNoDeliveryArrivedNotLike(String value) {
            addCriterion("no_delivery_arrived not like", value, "noDeliveryArrived");
            return (Criteria) this;
        }

        public Criteria andNoDeliveryArrivedIn(List<String> values) {
            addCriterion("no_delivery_arrived in", values, "noDeliveryArrived");
            return (Criteria) this;
        }

        public Criteria andNoDeliveryArrivedNotIn(List<String> values) {
            addCriterion("no_delivery_arrived not in", values, "noDeliveryArrived");
            return (Criteria) this;
        }

        public Criteria andNoDeliveryArrivedBetween(String value1, String value2) {
            addCriterion("no_delivery_arrived between", value1, value2, "noDeliveryArrived");
            return (Criteria) this;
        }

        public Criteria andNoDeliveryArrivedNotBetween(String value1, String value2) {
            addCriterion("no_delivery_arrived not between", value1, value2, "noDeliveryArrived");
            return (Criteria) this;
        }

        public Criteria andSentArrivedIsNull() {
            addCriterion("sent_arrived is null");
            return (Criteria) this;
        }

        public Criteria andSentArrivedIsNotNull() {
            addCriterion("sent_arrived is not null");
            return (Criteria) this;
        }

        public Criteria andSentArrivedEqualTo(String value) {
            addCriterion("sent_arrived =", value, "sentArrived");
            return (Criteria) this;
        }

        public Criteria andSentArrivedNotEqualTo(String value) {
            addCriterion("sent_arrived <>", value, "sentArrived");
            return (Criteria) this;
        }

        public Criteria andSentArrivedGreaterThan(String value) {
            addCriterion("sent_arrived >", value, "sentArrived");
            return (Criteria) this;
        }

        public Criteria andSentArrivedGreaterThanOrEqualTo(String value) {
            addCriterion("sent_arrived >=", value, "sentArrived");
            return (Criteria) this;
        }

        public Criteria andSentArrivedLessThan(String value) {
            addCriterion("sent_arrived <", value, "sentArrived");
            return (Criteria) this;
        }

        public Criteria andSentArrivedLessThanOrEqualTo(String value) {
            addCriterion("sent_arrived <=", value, "sentArrived");
            return (Criteria) this;
        }

        public Criteria andSentArrivedLike(String value) {
            addCriterion("sent_arrived like", value, "sentArrived");
            return (Criteria) this;
        }

        public Criteria andSentArrivedNotLike(String value) {
            addCriterion("sent_arrived not like", value, "sentArrived");
            return (Criteria) this;
        }

        public Criteria andSentArrivedIn(List<String> values) {
            addCriterion("sent_arrived in", values, "sentArrived");
            return (Criteria) this;
        }

        public Criteria andSentArrivedNotIn(List<String> values) {
            addCriterion("sent_arrived not in", values, "sentArrived");
            return (Criteria) this;
        }

        public Criteria andSentArrivedBetween(String value1, String value2) {
            addCriterion("sent_arrived between", value1, value2, "sentArrived");
            return (Criteria) this;
        }

        public Criteria andSentArrivedNotBetween(String value1, String value2) {
            addCriterion("sent_arrived not between", value1, value2, "sentArrived");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}